home *** CD-ROM | disk | FTP | other *** search
/ How Would You Survive? / How Would You Survive (1995)(Grolier)[Mac-PC].iso / mac / AZTECW.DIR / 01697_Script_YOUR HOME < prev    next >
Text File  |  1995-09-12  |  4KB  |  146 lines

  1. global gQuest, gBeenClicked, gHouseIsOpen
  2.  
  3. on AHomeRollovers1
  4.   set gBeenClicked = 0
  5.   set textboxsprite9 = 231
  6.   set textboxsprite11 = 234
  7.   if (not(CheckClickedStatus(gQuest))) then
  8.     if the mousecast = the castnum of sprite 6 then
  9.       repeat while the mousecast = the castnum of sprite 6
  10.         AztecCursor
  11.         if the mousedown then
  12.           RemoveTheHouse
  13.         end if
  14.       end repeat
  15.     else
  16.       if rollover(7) then
  17.         repeat while rollover(7)
  18.           AztecCursor
  19.           puppetsprite 8, true
  20.           puppetsprite 9, true
  21.           set the locH of sprite 8 to 444
  22.           set the locV of sprite 8 to 384
  23.           if gHouseIsOpen = 1 then
  24.             set the castnum of sprite 9 = textboxsprite9 + 1
  25.           end if
  26.           set the locH of sprite 9 to 444
  27.           set the locV of sprite 9 to 285
  28.           updatestage
  29.           if the mousedown then
  30.             set GBeenClicked = 1
  31.           else
  32.             if gBeenClicked = 1 then
  33.               repeat while gBeenClicked = 1
  34.                 AnimateToSlowPauseFrom 7, 224, 5, "SA140103.AIF", 1
  35.               end repeat
  36.             end if
  37.           end if
  38.         end repeat
  39.         set the locH of sprite 9 to 944
  40.         set the locH of sprite 8 to 944
  41.         puppetsprite 8, false
  42.         puppetsprite 9, false
  43.         updatestage
  44.       else
  45.         if rollover(10) then
  46.           repeat while rollover(10)
  47.             AztecCursor
  48.             puppetsprite 11, true
  49.             if gHouseIsOpen = 1 then
  50.               set the castnum of sprite 11 = textboxsprite11 + 1
  51.             end if
  52.             set the locH of sprite 11 to 252
  53.             set the locV of sprite 11 to 291
  54.             updatestage
  55.             if the mousedown then
  56.               set GBeenClicked = 1
  57.             else
  58.               if gBeenClicked = 1 then
  59.                 repeat while gBeenClicked = 1
  60.                   AnimateLoopFastest 10, 263, 4, "SA14130X.AIF", 3
  61.                 end repeat
  62.               end if
  63.             end if
  64.           end repeat
  65.           set the locH of sprite 11 to 952
  66.           puppetsprite 11, false
  67.           updatestage
  68.         else
  69.           if rollover(40) then
  70.             HandCursor
  71.           else
  72.             if rollover(41) then
  73.               HandCursor
  74.             else
  75.               if rollover(42) then
  76.                 HandCursor
  77.               else
  78.                 ArrowCursor
  79.               end if
  80.             end if
  81.           end if
  82.         end if
  83.       end if
  84.     end if
  85.   end if
  86.   RandomQuestion(gQuest)
  87. end
  88.  
  89. on AHomeRollovers2
  90.   set gBeenClicked = 0
  91.   if (not(CheckClickedStatus(gQuest))) then
  92.     if rollover(9) or rollover(8) then
  93.       ArrowCursor
  94.       repeat while rollover(9) or rollover(8)
  95.         set the locH of sprite 10 to 544
  96.         set the locV of sprite 10 to 319
  97.         updatestage
  98.       end repeat
  99.       set the locH of sprite 10 to 944
  100.       updatestage
  101.     else
  102.       if rollover(11) then
  103.         ArrowCursor
  104.         repeat while rollover(11)
  105.           set the locH of sprite 12 to 437
  106.           set the locV of sprite 12 to 302
  107.           updatestage
  108.         end repeat
  109.       else
  110.         if rollover(39) then
  111.           HandCursor
  112.         else
  113.           if rollover(41) then
  114.             HandCursor
  115.           else
  116.             if rollover(42) then
  117.               HandCursor
  118.             else
  119.               ArrowCursor
  120.             end if
  121.           end if
  122.         end if
  123.       end if
  124.     end if
  125.   end if
  126.   RandomQuestion(gQuest)
  127. end
  128.  
  129.  
  130. on RemoveTheHouse
  131.   puppetsound "SA140111.AIF"
  132.   wait .5
  133.   puppetsprite 6, true
  134.   set the locH of sprite 6 to 900
  135.   updatestage
  136.   set gHouseIsOpen = 1
  137. end
  138.  
  139. on ReplaceTheHouse
  140.   set the locH of sprite 6 to 342
  141.   set the locV of sprite 6 to 201
  142.   puppetsprite 6, false
  143.   updatestage
  144.   set gHouseIsOpen = 0
  145. end
  146.